<template>
<div class="box">

    <div class="top">
        <van-search v-model="value" show-action label="地址" placeholder="请输入搜索关键词" @search="onSearch">
        <template #action>
            <div @click="onClickButton">搜索</div>
        </template>
    </van-search>
    </div>
    <div class="center">
        <van-swipe :autoplay="1500" lazy-render>
  <van-swipe-item v-for="image in images" :key="image" >
    <img :src="image" style="width: 100%;"/>
  </van-swipe-item>

</van-swipe>
<van-grid :column-num="5">
  <van-grid-item v-for="value in 10" :key="value" icon="photo-o" text="文字" />
</van-grid>
    </div>
  
</div>
<list></list>
<footer class="footer"></footer>
</template>
<script setup>

import list from './components/list.vue'

    const images = [
      'https://fastly.jsdelivr.net/npm/@vant/assets/apple-1.jpeg',
      'https://fastly.jsdelivr.net/npm/@vant/assets/apple-2.jpeg',
    ];

</script>